#include "filenode.h"


filenode::filenode(std::string &path, long long int size) : path(path), size(size) { }


filenode::~filenode() { }


bool filenode::operator < (const filenode &a) const
{
    return this->size < a.size;
}


std::string filenode::get_path() const
{
    return path;
}


long long int filenode::get_size() const
{
    return size;
}


hash_t filenode::get_hash()
{
    if (!hash)
        hash.make(path);
    return hash;
}

